﻿using System;

namespace NumbersToEnglish
{
    /// <summary>
    /// NumberToEnglishBuilder class
    /// </summary>
    /// <remarks>
    /// Build up words using fluent api pattern.
    /// </remarks>
    /// <author>Ferdeen Mughal</author>
    /// <version>$Id: NumbersToEnglish.cs,v 1.0 13/12/2013</version>
    public class NumbersToEnglishBuilder
    {
        public string ToEnglish(Int64 number)
        {
            return new Engine.NumbersToEnglish(number)
                .CreateThreeDigitGroups()
                .ConvertThreeDigitGroupsIntoWords()
                .CombineGroups()
                .ToEnglish;
        }
    }
}

